package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_ths_member")
public class FThsMember {
    @Id
    private Long tid;

    /**
     * 指数代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 股票代码
     */
    private String code;

    /**
     * 股票名称
     */
    private String name;

    /**
     * 权重
     */
    private Float weight;

    /**
     * 纳入日期
     */
    @Column(name = "in_date")
    private String inDate;

    /**
     * 剔除日期
     */
    @Column(name = "out_date")
    private String outDate;

    /**
     * 是否最新Y是N否
     */
    @Column(name = "is_new")
    private String isNew;

    public FThsMember(Long tid, String tsCode, String code, String name, Float weight, String inDate, String outDate, String isNew) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.code = code;
        this.name = name;
        this.weight = weight;
        this.inDate = inDate;
        this.outDate = outDate;
        this.isNew = isNew;
    }

    public FThsMember() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取指数代码
     *
     * @return ts_code - 指数代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置指数代码
     *
     * @param tsCode 指数代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取股票代码
     *
     * @return code - 股票代码
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置股票代码
     *
     * @param code 股票代码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取股票名称
     *
     * @return name - 股票名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置股票名称
     *
     * @param name 股票名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取权重
     *
     * @return weight - 权重
     */
    public Float getWeight() {
        return weight;
    }

    /**
     * 设置权重
     *
     * @param weight 权重
     */
    public void setWeight(Float weight) {
        this.weight = weight;
    }

    /**
     * 获取纳入日期
     *
     * @return in_date - 纳入日期
     */
    public String getInDate() {
        return inDate;
    }

    /**
     * 设置纳入日期
     *
     * @param inDate 纳入日期
     */
    public void setInDate(String inDate) {
        this.inDate = inDate;
    }

    /**
     * 获取剔除日期
     *
     * @return out_date - 剔除日期
     */
    public String getOutDate() {
        return outDate;
    }

    /**
     * 设置剔除日期
     *
     * @param outDate 剔除日期
     */
    public void setOutDate(String outDate) {
        this.outDate = outDate;
    }

    /**
     * 获取是否最新Y是N否
     *
     * @return is_new - 是否最新Y是N否
     */
    public String getIsNew() {
        return isNew;
    }

    /**
     * 设置是否最新Y是N否
     *
     * @param isNew 是否最新Y是N否
     */
    public void setIsNew(String isNew) {
        this.isNew = isNew;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", weight=").append(weight);
        sb.append(", inDate=").append(inDate);
        sb.append(", outDate=").append(outDate);
        sb.append(", isNew=").append(isNew);
        sb.append("]");
        return sb.toString();
    }
}